﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace thailandProject.Models
{
    /// <summary>
    /// Contains the fields relating to the dates in the 
    /// </summary>
    public class PropertyDateFields
    {
        //TODO: Figure out how to validate the dates so that "From" comes before "To"
        [Required]
        [DataType(DataType.Date)]
        [Display(Name = "From")]
        public string ResStartDate { get; set; }

        [Required]
        [DataType(DataType.Date)]
        [Display(Name = "To")]
        public string ResEndDate { get; set; }
    }

    //I'm not sure how to work the dynamically generated text boxes

    /// <summary>
    /// Contains fields used for the client's name
    /// </summary>
    public class PropertyClientNameFields
    {
        [Required]
        [StringLength(100)]
        [DataType(DataType.Text)]
        [Display(Name = "From")]
        public string ResClientName { get; set; }
    }
}